package com.qww.test22;

import java.util.Random;

/**
 * @author qww
 * @date 2021-04-05 21:20
 */
public class Test22 {

    static Spiciness degree;

    public static void main(String[] args) {
        Spiciness[] arr = Spiciness.values();
        Random r = new Random();
        int index = r.nextInt(arr.length);
        degree = arr[index];
        switch (degree) {
            case NOT:
                System.out.println("NOT"); break;
            case MILD:
                System.out.println("MILD"); break;
            case MEDIUM:
                System.out.println("MEDIUM"); break;
            case FLAMING:
                System.out.println("FLAMING"); break;
            case HOT:
                System.out.println("HOT"); break;

        }
    }
}
